<?php
//
// +------------------------------------------------------------------------+
// | PHP Version 5.4                                                        |
// +------------------------------------------------------------------------+
// | Copyright (c) 2016-2017 http://www.clcw.com.cn All rights reserved.    |
// +------------------------------------------------------------------------+
// | 世纪车来车往(北京）网络科技有限公司 版权所有！                           |
// | TEL:010-63732365  HOTLINE:400-6688-365  EMAIL:clcw@clcw.com.cn         |
// | $Revision: 1.0 $                                                       |
// +------------------------------------------------------------------------+
// | Author: Xmh <xiangminghu@clcw.com.cn>                                  |
// +------------------------------------------------------------------------+
//
namespace AuctionCore\Other;

/**
* 车来车往Web - 意见反馈
* @author  Xmh
*/
class Feedback {
     private $feedbackModel;

    public function __construct() {
        $this->feedbackModel = M('feedback');
    }
    /**
     * 添加意见反馈
     * @param type $data
     * @return type 
     */
    public function add_feedback_post($data = array()){
        $data['ip'] = get_client_ip();
        $data['created_at'] = date('Y-m-d H:i:s');
        return $this->feedbackModel->add($data);
    }

}

?>